import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
// import 'uview-ui/lib/index.scss'
// import Vant from 'vant';
// import 'vant/lib/index.css'; // 强制引入完整样式
import UniDataSelect from '@/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue';
import uForms from '@/uni_modules/uni-forms/components/uni-forms/uni-forms.vue';
import UniFormsItem from '@/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item';
import uniDataCheckbox from '@/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue';
import uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'



export function createApp() {
	const app = createSSRApp(App);
	// app.use(Vant); // 注册全局组件
	app.component('uni-data-select', UniDataSelect);
	app.component('uni-forms', uForms);
	app.component('uni-forms-item', UniFormsItem);
	app.component('uni-data-checkbox', uniDataCheckbox);
	app.component('uni-data-picker', uniDatetimePicker);
	return {
		app
	};
}
// #endif